package cn.hg.jbsa.admin.controller.system.validator;

import com.jfinal.core.Controller;

import cn.hg.jboot.core.validator.BaseValidator;

/**
 * @author 胡高
 * @date 2022/02/15
 */
public class JbsaRoleValidator extends BaseValidator {

    @Override
    protected void handleError(Controller c) {
    }

    @Override
    protected void validate(Controller c) {
        this.validateString("bean.name", 2, 50, "nameMsg", "名称必须填写2到50长度的字符！");
        this.validateInteger("bean.sortNum", 0, Short.MAX_VALUE, "sortNumMsg",
            "排序号必须填写0到" + Short.MAX_VALUE + "长度的字符！");
        this.validateRequired("bean.status", "statusMsg", "必须填写状态！");

    }

}
